import request from '@/utils/request'

// 查询岗位部门信息列表

export function deptpostList(query) {
  return request({
    url: '/wsp/deptpost/list',
    method: 'get',
    params: query
  })
}
// 新增岗位部门信息
export function addDeptpost(query) {
  return request({
    url: '/wsp/deptpost',
    method: 'post',
    data: query
  })
}
// 修改岗位部门信息
export function updataDeptpost(query) {
  return request({
    url: '/wsp/deptpost',
    method: 'put',
    data: query
  })
}
// 删除岗位部门信息
export function delDeptpost(query) {
  return request({
    url: '/wsp/deptpost/' + query,
    method: 'delete', 
  })
}
// 获取岗位部门信息详情
export function detailsDeptpost(query) {
  return request({
    url: '/wsp/deptpost/' + query,
    method: 'get', 
  })
}
// 审核部门岗位
export function apprDeptpost(query) {
  return request({
    url: '/wsp/deptpost/appr',
    method: 'put',
    data: query
  })
}
// 用工结束部门岗位

export function deptpostEoe(query) {
  return request({
    url: '/wsp/deptpost/eoe/' + query,
    method: 'post',
  })
}
